﻿@model List<Mockingbird.Core.Models.NewsFeedModel>
<div class="container globalContainer">
    <div class="row col-md-4 col-lg-3 left-column">
        <div class="left-profile">
            <div class="left-profile-inner">
                <a class="" href="#">
                    @Html.Gravatar(User.Properties.Email, 40, "size40")
                </a>
                <div class="left-profile-name">
                    <a class="profile-name" href="#">@User.Properties.Name</a>
                </div>
            </div>
        </div>
        <!--module -->
        <div class="module">
            <ul class="navigation-module">
                <li id="ShowFeed" class="active"><a class="navigation-link" href="@Url.Action("Index", "NewsFeed")">
                    News Feed <i class="right-arrow"></i></a></li>
                <li id="ShowFriends" class=""><a class="navigation-link" href="@Url.Action("GetFriends", "User")">
                    Friends <i class="right-arrow"></i></a></li>
            </ul>
        </div>
        <!--end of module -->
    </div>
    <div id="main-stream" class="row col-md-4 col-lg-5 main-stream">
        <div id="upper-status-menu">
            <ul>
                <li><a href="#update-status">Update Status</a></li>
                <li><a href="#upload-photo">Upload a photo</a></li>
            </ul>
            @{
                Html.RenderAction("Upload", "NewsFeed");
            }
            <div id="upload-photo">
                @using (Html.BeginForm("UploadPhoto", "NewsFeed", FormMethod.Post, new { enctype = "multipart/form-data", id = "UploadImage" }))
                {
                    
                    <input type="file" name="file" />
                    <button type="submit" class="btn btn-black glyphicon glyphicon-plus">
                    </button>
                }
            </div>
        </div>
        <!-- end of upper status menu -->
        <div id="content-main" class="content-main">
            @if (ViewBag.UseHeartbeat != null && ViewBag.UseHeartbeat)
            {
                <input type="hidden" id="useHeartBeat" />
            }
            <div class="content-header">
                <div class="header-inner">
                    <h2>
                        @(ViewBag.UserName + "' News Feed")
                    </h2>
                </div>
            </div>
            @{

                    
                Html.RenderPartial("_NewsFeedList", Model);
            }
        </div>
        <!-- end of content main -->
    </div>
    <!-- end ot main-stream -->
    <div class="row col-md-4 col-lg-4 right-column">
    </div>
</div>
